package com.photoeditor.demo.ui.widget.image.watermark;

import java.io.Serializable;

/**
 * Created by edward on 17-6-13.
 */

public class Watermark implements Serializable {

    public static final int TYPE_NORMAL = -1;
    public static final int TYPE_SOCIAL = -2;
    public static final int TYPE_FUNNY = -3;

    private int mId;
    // 用于展示在菜单项中的资源id
    private int mDemoResId;
    // 实际用来贴在图片上的资源id
    private int mResId;
    // 外部水印资源路径
    private String mFilePath;
    private int mType;
    private int mWidth;
    private int mHeight;
    // 用于统计的字段
    private String mStatisticName;

    /**
     * 生成唯一的id
     */
    public void generateId() {
        if (mResId != 0) {
            mId = mResId;
        } else {
            mId = -((mType + mFilePath).hashCode());
        }
    }

    public int getId() {
        return mId;
    }

    public void setId(int id) {
        mId = id;
    }

    public int getDemoResId() {
        return mDemoResId;
    }

    public void setDemoResId(int demoResId) {
        mDemoResId = demoResId;
    }

    public int getResId() {
        return mResId;
    }

    public void setResId(int resId) {
        mResId = resId;
    }

    public int getType() {
        return mType;
    }

    public void setType(int type) {
        mType = type;
    }

    public int getWidth() {
        return mWidth;
    }

    public void setWidth(int width) {
        mWidth = width;
    }

    public int getHeight() {
        return mHeight;
    }

    public void setHeight(int height) {
        mHeight = height;
    }

    public String getFilePath() {
        return mFilePath;
    }

    public void setFilePath(String filePath) {
        mFilePath = filePath;
    }

    public String getStatisticName() {
        return mStatisticName;
    }

    public void setStatisticName(String statisticName) {
        mStatisticName = statisticName;
    }
}
